Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: use k8s_service_info lib instead of SDI #436

Merged
merged 9 commits into from
Apr 24, 2024

Conversation

DnPlas
Copy link
Contributor

@DnPlas DnPlas commented Apr 17, 2024

Use the k8s_service_info for receiving the MLMD GRPC Service info instead of using the SDI, as it will stop being supported soon.
This commit also ensures that mlmd runs with trust=True in the integration tests.

Fixes #413

NOTE for reviewers:

  • I have added a component for wrapping the k8s service info requirer because we need to:
  1. Have a way to return a status based on the relation conditions
  2. Because there is no other way to do logic that prevents errors in the init method of the charm. For instance, it would be weird to have a try/catch in the init method for ensuring the required relation is established.

Testing instructions

  1. Deploy the charm in this branch
  2. Deploy mlmd from channel latest/edge with trust
  3. Relate both charms
  4. Verify both charms go to active and idle
Test upgrade path
  1. Deploy kfp-metadata-writer from channel 2.0/stable with trust
  2. Run juju refresh to the charm in this branch
  3. Observe the charm going to Blocked(because it is missing a relation with mlmd) with the messsage: [grpc] Missing relation with a k8s service info provider. Please add the missing relation

Use the k8s_service_info for receiving the MLMD GRPC Service info instead of using
the SDI, as it will stop being supported soon.
This commit also ensures that mlmd runs with trust=True in the
integration tests.

Fixes #413
@DnPlas DnPlas changed the base branch from main to dnplas-dev-branch-fix-ci April 22, 2024 10:09
@DnPlas
Copy link
Contributor Author

DnPlas commented Apr 22, 2024

For the CI failures, please see this comment.

@DnPlas
Copy link
Contributor Author

DnPlas commented Apr 24, 2024

The CI should now be green.

@DnPlas DnPlas merged commit b6d7d90 into dnplas-dev-branch-fix-ci Apr 24, 2024
46 checks passed
DnPlas added a commit that referenced this pull request Apr 25, 2024
This PR merges the following changes in main as they were introduced in a development branch.

* ci: remove destructive mode from integration tests #441
* build: install jinja2 from binary #443
* refactor: use k8s_service_info lib instead of SDI #436
NohaIhab pushed a commit that referenced this pull request May 9, 2024
switch to jlumbroso/free-disk-space for freeing runner space (#428)

The previous space freeing method (easimon/maximize-build-space) at some point circa 2024-01 stopped freeing as much space, likely due to changes in the runner (~29GB free after it freed space).  Not sure why this happened, but jlumbroso/free-disk-space at time of this commit would get us up to ~45GB free on the runner without negative effects so we've switched to that.

Support functionality to override default images for kfp-profile-controller (#416)

* Support functionality to override default images for kfp-profile-controller

ci: remove destructive mode from integration tests (#441)

The charmcraft issues that forced us to use destructive mode are now fixed.

build: install `jinja2` from binary (#443)

This commit installs jinja2 (an install dependency of charmed-kubeflow-chisme) as a binary
to avoid running into the build time issues described in canonical/bundle-kubeflow#883.

Part of canonical/bundle-kubeflow#883

refactor: use k8s_service_info lib instead of SDI (#436)

* refactor: use k8s_service_info lib instead of SDI

Use the k8s_service_info for receiving the MLMD GRPC Service info instead of using
the SDI, as it will stop being supported soon.
This commit also ensures that mlmd runs with trust=True in the
integration tests.

Fixes #413

fix: Pin integration test dependencies in main (#434)

* pin integration test dependencies

Co-authored-by: Daniela Plascencia <[email protected]>

feat: Integrate ROCK in metadata-writer charm (#439)

chore: Bump o11y libs and remove obsolete juju topology (#446)

Ref canonical/bundle-kubeflow#880
Ref canonical/bundle-kubeflow#849

ci: bump juju to 3.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

update the grpc relation to use the mlops-libs k8s_service_info library
2 participants